package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.weixing.mall.provider.model.domain.AgentDiscount;
import com.weixing.mall.provider.api.model.vo.AgentDiscountVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 促销模块-代理商活动折扣表 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-16
 */
public interface AgentDiscountMapper extends BaseMapper<AgentDiscount> {

    AgentDiscount findByActId(Long id);

    List<AgentDiscountVo> getByName(String name);

    IPage<AgentDiscountVo> listPage(@Param("pg") Page page, @Param("name") String name);
}
